﻿using Hotel.BLL;
using Hotel.DAL;
using Hotel.Model;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Hotel.Server.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ShopController : ControllerBase
    {
        public ShopController(ShopBLL shopBLL)
        {
            ShopBLL = shopBLL;
        }

        public ShopBLL ShopBLL { get; }





        /// <summary>
        /// 添加门店
        /// </summary>
        /// <param name="shopModel"></param>
        /// <returns></returns>
        [HttpPost]
        public IActionResult ShopAdd(ShopModel shopModel)
        {
            int res = ShopBLL.ShopAdd(shopModel);
            return Ok(res);


        }



















    }
}
